﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sealight.Core.DataAdapter;
namespace Sealight.Core.Domain
{
   public class NewsSourceEntity
    {
       public virtual Guid NewsSourceID { get; set; }
       public virtual string SourceName { get; set; }
       public virtual LanguageEntity Language { get; set; }

       public virtual news_source ToDataAdapter()
       {
           news_source entity = new news_source
           {
               id = this.NewsSourceID,
               source_name = this.SourceName,
               language = this.Language.ToDataAdapter()
           };

           return entity;
       }
    }
}
